function [ classes ] = discriminantClassifier ( train, valid )
    % classify the images using discriminant classify algorithm
    
    % get the size of the validation matrix
    [train_vector_x, ~] = size(train);
    group_vector = [2 .* ones(train_vector_x / 3, 1); ones(train_vector_x / 3, 1); 3 .* ones(train_vector_x / 3, 1)];
    
     % the type to use with the classifier can be one of: 'linear',
     % 'diaglinear', 'quadratic', 'diagquadratic', 'mahalanobis'
    classes = classify(valid, train, group_vector , 'linear');
end

